﻿CREATE PROCEDURE dbo.GetMessage
	
	(
	@messageId int = 5

	)
	
AS
	select MessageId,InboxType,Sender,Recipient,Header,SendTime,Priority,RecReadMsgDate,Text
	from [Messages] as Message where MessageId = @messageId
	FOR XML AUTO, ELEMENTS;
